export const validateTransAmount = (rule, value, callback) => {
  if (/^\d+(\.\d{1,2})?$/.test(value) && value < 10000000) {
    callback()
  } else {
    callback(new Error('只允许数字'))
  }
}

export const validatequoteAmount = (rule, value, callback) => {
  if (/^[1-9]\d*$/.test(value) && value < 10000000) {
    callback()
  } else {
    callback(new Error('只允许整数'))
  }
}
